/*mone
 * @Author: 三岁小仙仙 scitctocdtu@qq.com
 * @Date: 2024-10-01 20:42:17
 * @LastEditors: 三岁小仙仙 scitctocdtu@qq.com
 * @LastEditTime: 2024-10-02 15:51:21
 * @FilePath: \demo\src\assets\global.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

/**
 * 本地出差记录库的KEY
 */
export const travelRecordLibraryKey = "TravelRecordLibrary"

/**
 * 本地人员库的KEY
 */
export const travelPeopleLibraryKey = "TravelPeopleLibrary"

/**
 * 本地出差地址库的KEY
 */
export const travelAddressLibraryKey = "TravelAddressLibrary"

/**
 * 本地包干交通费库的KEY
 */
export const lumpSumCarFareLibraryKey = "LumpSumCarFareLibrary"

export const addressList = [
	{
		text: "县内",
		value: 30000,
		cost: 20,
		children: [
			{ text: "屏山镇", value: 30001, cost: 40 },
			{ text: "大乘镇", value: 30002, cost: 40 },
			{ text: "锦屏镇", value: 30003, cost: 60 },
			{ text: "书楼镇", value: 30004, cost: 60 },
			{ text: "龙华镇", value: 30005, cost: 70 },
			{ text: "新安镇", value: 30006, cost: 70 },
			{ text: "新市镇", value: 30007, cost: 80 },
			{ text: "中都镇", value: 30008, cost: 80 },
			{ text: "夏溪乡", value: 30009, cost: 80 },
			{ text: "屏边彝族乡", value: 30010, cost: 80 },
			{ text: "清平彝族乡", value: 30011, cost: 80 },
		],
	},
	{
		text: "县外市内",
		value: 31000,
		cost: 40,
		children: [{ text: "县外市内", value: 31001, cost: 80 }],
	},
	{
		text: "省内其他地区",
		value: 32000,
		cost: 50,
		children: [
			{ text: "甘孜", value: 32001, cost: 120 },
			{ text: "阿坝", value: 32002, cost: 120 },
			{ text: "凉山", value: 32003, cost: 120 },
			{ text: "其他", value: 32004, cost: 100 },
		],
	},
	{
		text: "省外",
		value: 33000,
		cost: 80,
		children: [
			{ text: "西藏", value: 33001, cost: 120 },
			{ text: "青海", value: 33002, cost: 120 },
			{ text: "新疆", value: 33003, cost: 120 },
			{ text: "其他", value: 33004, cost: 100 },
		],
	},
]

export const peopleList = [
	"何怀志",
	"冯开霞",
	"胡栩",
	"陈善梁",
	"张玉洁",
	"钟伍汗",
	"谢文洁",
	"李小燕",
	"肖格雅",
	"张健强",
]

export const DB = {
	dbName: "TravelRecordLibrary",
	version: 1,
	store: {
		TravelRecord: {
			name: "TravelRecord",
			keyPath: "id",
			autoIncrement: false,
			cursorIndex: [
				{ key: "isReimbursed", unique: false },
				{ key: "travelDate", uniqeu: false },
				{ key: "officialCars", uniqeu: false },
			],
		} as IndexedDB.TStore,
	},
}
